#include "mainwindow.h"
#include "ui_mainwindow.h"

#include "../picview/picview.h"


#include <QtWidgets>
#include <QtWinExtras>

MainWindow::MainWindow(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::MainWindow)
{
    ui->setupUi(this);



    MainView*mainView=new MainView(this);

    ui->centralWidget->layout()->addWidget(mainView);

    //    if (QtWin::isCompositionEnabled()) {
    //        QtWin::extendFrameIntoClientArea(this, -1, -1, -1, -1);
    //        setAttribute(Qt::WA_TranslucentBackground, true);
    //        setAttribute(Qt::WA_NoSystemBackground, false);
    //        setStyleSheet("MainWindow { background: transparent;}");
    //    } else {
    //        QtWin::resetExtendedFrame(this);
    //        setAttribute(Qt::WA_TranslucentBackground, false);
    //        setStyleSheet(QString("MainWindow { background: %1;").arg(QtWin::realColorizationColor().name()));
    //    }


}

MainWindow::~MainWindow()
{
    delete ui;
}
